{% extends "ProjetForumBundle::layout.html.twig" %}

{% block title %}
	{{ entity.nom }} - {{ parent() }}
{% endblock %}

{% block Forum_body %}

<div class="alert alert-success"><h2>Sujet : {{ entity.nom }}</h2></div>

<table class="table">
    <tbody>
        <tr>
            <th>Description</th>
            <td>{{ entity.description }}</td>
        </tr>
        <tr>
            <th>Créé le</th>
            <td>{{ entity.createdat|date('Y-m-d H:i:s') }}</td>
        </tr>
    </tbody>
</table>


<div id="commentList" class="alert alert-danger">
	<div class="alert alert-info"><h3>Commentaires</h3></div>
	{% include "ProjetForumBundle:Comment:index.html.twig" %}
</div>


<div id="newComment">
	{% include "ProjetForumBundle:Comment:new.html.twig" %}
</div>

{% endblock %}